//
//  SHAliPayManager.h
//  SHWeChat
//
//  Created by 索晓晓 on 2021/10/28.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SHAliPayManager : NSObject

+ (void)regisAliPayScheme:(NSString *)scheme;

+ (instancetype)sharedInstance;

/// 支付宝支付
/// @param payInfo 支付需要用到的数据
/// @param complate 完成后的回调
+ (void)payInfo:(NSString *)payInfo
       complate:(void(^)(NSDictionary *dict))complate;

/**
 @brief 处理支付宝url, 如果AlipaySDK不能处理该url，则返回false
 @param url url
 @return 支付宝能处理, 返回true, 否则返回false
 */
+ (BOOL)openURL:(NSURL*)url;

@end

NS_ASSUME_NONNULL_END
